From 5f46b4102c179680d613b6b9e0e6d392318030d2 Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 8 Nov 2021 10:53:42 +0800 Subject: + tolua --- ThirdParty/tolua-5.2.4/src/lib/tolua_to.c | 125 ++++++++++++++++++++++++++++++ 1 file changed, 125 insertions(+) create mode 100644 ThirdParty/tolua-5.2.4/src/lib/tolua_to.c (limited to 'ThirdParty/tolua-5.2.4/src/lib/tolua_to.c') diff --git a/ThirdParty/tolua-5.2.4/src/lib/tolua_to.c b/ThirdParty/tolua-5.2.4/src/lib/tolua_to.c new file mode 100644 index 0000000..e036037 --- /dev/null +++ b/ThirdParty/tolua-5.2.4/src/lib/tolua_to.c @@ -0,0 +1,125 @@ +/* tolua: funcitons to convert to C types +** Support code for Lua bindings. +** Written by Waldemar Celes +** TeCGraf/PUC-Rio +** Apr 2003 +** $Id: tolua_to.c,v 1.5 2009/11/24 16:45:15 fabraham 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 +#include + +TOLUA_API double tolua_tonumber (lua_State* L, int narg, double def) +{ + return lua_gettop(L)