//include.h#include "../../var4.h"#include <functional>#include <luastate.h>namespace enigma_user{template<typename FuncType> variant luaF_execute_file(string filepath,FuncType f);}
void* a = instance_create;
variant luaF_execute_file_int3(string filepath,const std::function<int(int, int, int)> &f);
In file included from C:/ProgramData/ENIGMA/API_Switchboard.h:42:0, from SHELLmain.cpp:60:./Universal_System/Extensions/Lua/include.h:25:9: error: initializing argument 2 of 'variant enigma_user::luaF_execute_file(std::string, void*)' [-fpermissive] variant luaF_execute_file(string filepath, void* f); ^In file included from SHELLmain.cpp:109:0:C:/ProgramData/ENIGMA/Preprocessor_Environment_Editable/IDE_EDIT_objectfunctionality.h: In member function 'virtual variant enigma::OBJ_obj_0::myevent_create()':C:/ProgramData/ENIGMA/Preprocessor_Environment_Editable/IDE_EDIT_objectfunctionality.h:42:60: error: invalid conversion from 'void (*)()' to 'void*' [-fpermissive] luaF_execute_file("C:\\ENIGMA\\Lua\\test.lua", path_end); ^In file included from C:/ProgramData/ENIGMA/API_Switchboard.h:42:0, from SHELLmain.cpp:60:./Universal_System/Extensions/Lua/include.h:25:9: error: initializing argument 2 of 'variant enigma_user::luaF_execute_file(std::string, void*)' [-fpermissive] variant luaF_execute_file(string filepath, void* f); ^
struct functype{ operator const std::function<int(int)>(); ... ...};