celxlua: add push(float)

pull/185/head
Hleb Valoshka 2018-12-12 22:58:32 +03:00
parent c710412ba7
commit e2d7efd984
1 changed files with 5 additions and 0 deletions

View File

@ -117,6 +117,11 @@ public:
return 1;
}
#endif
int push(float a)
{
lua_pushnumber(m_lua, a);
return 1;
}
int push(double a)
{
lua_pushvalue(m_lua, a);