int LuaScriptUtilities::PushRealAttribute( lua_State* const luaVM, const Ogre::Real real, const Ogre::String attributeName, const int tableIndex) { PushString(luaVM, attributeName); PushReal(luaVM, real); lua_settable(luaVM, tableIndex); return 1; }
CodeBlock YpImaginary(double d) { return PushReal(d, &PushImaginary); }
CodeBlock YpDouble(double d) { return PushReal(d, &PushDouble); }
CodeBlock YpFloat(double f) { return PushReal(f, &PushFloat); }