00001
00002
00003
00004
00005
00006
00007 #include "luapp_glues.hpp"
00008 #include "luapp_function.hpp"
00009 #include "luapp_state.hpp"
00010
00011
00012
00013
00014 namespace lua
00015 {
00016 int glue_send_string( lua_State* pLua )
00017 {
00018 state::get_state(pLua)->sComString += lua_tostring(pLua, 1);
00019
00020 return 0;
00021 }
00022
00023 int glue_empty_string( lua_State* pLua )
00024 {
00025 state::get_state(pLua)->sComString = "";
00026
00027 return 0;
00028 }
00029
00030 int glue_table_to_string( lua_State* pLua )
00031 {
00032 std::string t = lua_tostring(pLua, 1);
00033 std::string s = state::get_state(pLua)->table_to_string(lua_tostring(pLua, 2));
00034 s = t+s;
00035 lua_pushstring(pLua, s.c_str());
00036
00037 return 1;
00038 }
00039 }
00040
00041
00042