Log.h 889 B

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