---------------------------------------------------------------------------*/
| 54 | |
| 55 | /*---------------------------------------------------------------------------*/ |
| 56 | void lua_tinker::init_s64(lua_State *L) |
| 57 | { |
| 58 | const char* name = "__s64"; |
| 59 | lua_newtable(L); |
| 60 | |
| 61 | lua_pushstring(L, "__name"); |
| 62 | lua_pushstring(L, name); |
| 63 | lua_rawset(L, -3); |
| 64 | |
| 65 | lua_pushstring(L, "__tostring"); |
| 66 | lua_pushcclosure(L, tostring_s64, 0); |
| 67 | lua_rawset(L, -3); |
| 68 | |
| 69 | lua_pushstring(L, "__eq"); |
| 70 | lua_pushcclosure(L, eq_s64, 0); |
| 71 | lua_rawset(L, -3); |
| 72 | |
| 73 | lua_pushstring(L, "__lt"); |
| 74 | lua_pushcclosure(L, lt_s64, 0); |
| 75 | lua_rawset(L, -3); |
| 76 | |
| 77 | lua_pushstring(L, "__le"); |
| 78 | lua_pushcclosure(L, le_s64, 0); |
| 79 | lua_rawset(L, -3); |
| 80 | |
| 81 | lua_setglobal(L, name); //pop table |
| 82 | } |
| 83 | |
| 84 | /*---------------------------------------------------------------------------*/ |
| 85 | /* __u64 */ |
nothing calls this directly
no test coverage detected