added ag.println() function

git-svn-id: svn://anubis/anaglym/trunk@9 99a6e188-d820-4881-8870-2d33a10e2619
This commit is contained in:
Josh Holtrop committed 2009-09-14 02:47:01 +00:00
1 parent 356d3961f1
commit 795fcc13d6
2 files changed
+8

No files matched your search

+7
View File
@@ -10,6 +10,7 @@ namespace ag
{
static const luaL_Reg functions[] = {
{ "print", ag_print },
{ "println", ag_println },
{ NULL, NULL }
};
luaL_register(L, "ag", functions);
@@ -71,4 +72,10 @@ namespace ag
}
return 0;
}
int ag_println(lua_State * L)
{
ag_print(L);
cout << endl;
}
}
+1
View File
@@ -8,6 +8,7 @@ namespace ag
{
void register_functions(lua_State * L);
int ag_print(lua_State * L);
int ag_println(lua_State * L);
}
#endif