Last change
on this file since 263 was
262,
checked in by epyon, 11 years ago
|
- major decoupling
lua system independent of nv::object
nv::object support for lua opt-in
lua system independent of types.hh
|
File size:
469 bytes
|
Rev | Line | |
---|
[262] | 1 | // Copyright (C) 2012-2013 ChaosForge / Kornel Kisielewicz
|
---|
| 2 | // http://chaosforge.org/
|
---|
| 3 | //
|
---|
| 4 | // This file is part of NV Libraries.
|
---|
| 5 | // For conditions of distribution and use, see copyright notice in nv.hh
|
---|
| 6 |
|
---|
| 7 | #include "nv/lua/lua_object.hh"
|
---|
| 8 |
|
---|
| 9 | #include "nv/lua/lua_raw.hh"
|
---|
| 10 |
|
---|
| 11 | void nv::lua::detail::push_object ( lua_State *L, object* o )
|
---|
| 12 | {
|
---|
| 13 | if ( o == nullptr )
|
---|
| 14 | {
|
---|
| 15 | lua_pushnil( L );
|
---|
| 16 | }
|
---|
| 17 | else
|
---|
| 18 | {
|
---|
| 19 | lua_rawgeti( L, LUA_REGISTRYINDEX, o->get_lua_index() );
|
---|
| 20 | }
|
---|
| 21 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.