lua++
|
00001 /* ###################################### */ 00002 /* ### Frost Engine, by Kalith ### */ 00003 /* ###################################### */ 00004 /* Lua source */ 00005 /* */ 00006 00007 #include "luapp_glues.hpp" 00008 #include "luapp_function.hpp" 00009 #include "luapp_state.hpp" 00010 00011 /** \cond NOT_REMOVE_FROM_DOC 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_conc_table( lua_State* pLua ) 00031 { 00032 std::string t = lua_tostring(pLua, 1); 00033 std::string s = state::get_state(pLua)->conc_table(lua_tostring(pLua, 2)); 00034 s = t+s; 00035 lua_pushstring(pLua, s.c_str()); 00036 00037 return 1; 00038 } 00039 } 00040 00041 /** \endcond 00042 */