mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
Fixed some bad formatting and a missing include guard.
This commit is contained in:
parent
be3d0ac27c
commit
9c7e5f0b33
|
@ -19,6 +19,9 @@
|
||||||
// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||||
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
|
#ifndef SOL_PROXY_HPP
|
||||||
|
#define SOL_PROXY_HPP
|
||||||
|
|
||||||
#include "traits.hpp"
|
#include "traits.hpp"
|
||||||
#include "object.hpp"
|
#include "object.hpp"
|
||||||
#include "function.hpp"
|
#include "function.hpp"
|
||||||
|
@ -127,3 +130,5 @@ inline bool operator!= (const proxy<Table, Key>& right, T&& left) {
|
||||||
}
|
}
|
||||||
|
|
||||||
} // sol
|
} // sol
|
||||||
|
|
||||||
|
#endif // SOL_PROXY_HPP
|
||||||
|
|
|
@ -207,7 +207,7 @@ private:
|
||||||
stack::push(state(), userobjdata);
|
stack::push(state(), userobjdata);
|
||||||
luaL_setfuncs(state(), funcreg, upvalues + 1);
|
luaL_setfuncs(state(), funcreg, upvalues + 1);
|
||||||
|
|
||||||
pop();
|
pop();
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -225,7 +225,7 @@ private:
|
||||||
push();
|
push();
|
||||||
int upvalues = stack::push_user(state(), target);
|
int upvalues = stack::push_user(state(), target);
|
||||||
luaL_setfuncs(state(), funcreg, upvalues);
|
luaL_setfuncs(state(), funcreg, upvalues);
|
||||||
pop();
|
pop();
|
||||||
|
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user