From 6aa48afdd57d03314fdf4be6c9da911c32277c84 Mon Sep 17 00:00:00 2001 From: Bardur Arantsson Date: Fri, 8 Jan 2010 20:28:34 +0100 Subject: Import tome-2.3.5. --- src/lua/tolua_gp.c | 197 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 197 insertions(+) create mode 100644 src/lua/tolua_gp.c (limited to 'src/lua/tolua_gp.c') diff --git a/src/lua/tolua_gp.c b/src/lua/tolua_gp.c new file mode 100644 index 00000000..77ff0c26 --- /dev/null +++ b/src/lua/tolua_gp.c @@ -0,0 +1,197 @@ +/* tolua: get & push functions. +** Support code for Lua bindings. +** Written by Waldemar Celes +** TeCGraf/PUC-Rio +** Jul 1998 +** $Id: tolua_gp.c,v 1.2 2001/11/26 23:00:27 darkgod Exp $ +*/ + +/* This code is free software; you can redistribute it and/or modify it. +** The software provided hereunder is on an "as is" basis, and +** the author has no obligation to provide maintenance, support, updates, +** enhancements, or modifications. +*/ + +#include "tolua.h" +#include "tolua_tm.h" + +#include +#include + +long tolua_getnumber (lua_State* L, int narg, long def) +{ + return lua_gettop(L)