Log.h 871 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. #include "LuaType.h"
  2. #include "lua.hpp"
  3. /*
  4. Declares "Log" in the global Lua namespace.
  5. //It is not nessecarry to call it on a "Log" object, just
  6. //call it on the Log table
  7. Log(logtype type, string message)
  8. where logtype is defined in Log.logtype, and can be:
  9. logtype.always
  10. logtype.error
  11. logtype.warning
  12. logtype.info
  13. logtype.debug
  14. and they have the same value as the C++ Log::Type of the same name
  15. */
  16. namespace Rocket {
  17. namespace Core {
  18. namespace Lua {
  19. template<> void LuaType<Log>::extra_init(lua_State* L, int metatable_index);
  20. int Log__call(lua_State* L);
  21. RegType<Log> LogMethods[];
  22. luaL_reg LogGetters[];
  23. luaL_reg LogSetters[];
  24. /*
  25. template<> const char* GetTClassName<Log>();
  26. template<> RegType<Log>* GetMethodTable<Log>();
  27. template<> luaL_reg* GetAttrTable<Log>();
  28. template<> luaL_reg* SetAttrTable<Log>();
  29. */
  30. }
  31. }
  32. }