OOLua compile errors
问题 Code #include <OOLua/oolua.h> class foo { public: int bar(); }; OOLUA_CLASS_NO_BASES(foo)//class has no bases OOLUA_NO_TYPEDEFS OOLUA_MEM_FUN_0(int,bar) OOLUA_CLASS_END Compiler output main.cpp(21) : error C2061: syntax error : identifier 'bar' main.cpp(22) : error C2143: syntax error : missing ';' before '}' main.cpp(22) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int main.cpp(22) : warning C4183: 'OOLUA_MEM_FUN_0': missing return type; assumed to