added ag.println() function
git-svn-id: svn://anubis/anaglym/trunk@9 99a6e188-d820-4881-8870-2d33a10e2619
This commit is contained in:
parent
356d3961f1
commit
795fcc13d6
7
ag.cc
7
ag.cc
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user