mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-07-13 05:49:21 -04:00
5d68762590
* Add a *ton* of const and constexpr around the codebase. This makes the codebase compile without strings being cast to non-const char*. I also went through and added constexpr where appropriate for tons of static data. * Make process definitions const too Might as well
30 lines
842 B
C++
30 lines
842 B
C++
/**
|
|
* f_pc_method.cpp
|
|
* Framework - Process Method
|
|
*/
|
|
|
|
#include "f_pc/f_pc_method.h"
|
|
|
|
int fpcMtd_Method(process_method_func i_method, void* i_process) {
|
|
if (i_method != NULL)
|
|
return i_method(i_process);
|
|
else
|
|
return 1;
|
|
}
|
|
|
|
int fpcMtd_Execute(process_method_class DUSK_CONST* i_methods, void* i_process) {
|
|
return fpcMtd_Method(i_methods->execute_method, i_process);
|
|
}
|
|
|
|
int fpcMtd_IsDelete(process_method_class DUSK_CONST* i_methods, void* i_process) {
|
|
return fpcMtd_Method(i_methods->is_delete_method, i_process);
|
|
}
|
|
|
|
int fpcMtd_Delete(process_method_class DUSK_CONST* i_methods, void* i_process) {
|
|
return fpcMtd_Method(i_methods->delete_method, i_process);
|
|
}
|
|
|
|
int fpcMtd_Create(process_method_class DUSK_CONST* i_methods, void* i_process) {
|
|
return fpcMtd_Method(i_methods->create_method, i_process);
|
|
}
|