Commit Graph
84 Commits
Author SHA1 Message Date
Glenn Maynard f567a0fd28 cleanup arg order 2006-09-26 08:54:54 +00:00
Steve Checkoway 9914f50ade Safe macros. (Probably only needed if the type of argument is not known at compile time and accessed with something other than a constant.) 2006-09-26 05:50:40 +00:00
Steve Checkoway 6fe6baa241 Unused. The purpose of this connivence function as stated in the comments (which isn't quite what it did) is exactly what RunExpression does. 2006-09-26 05:35:24 +00:00
Glenn Maynard 923f0f7346 inline 2006-09-26 01:36:31 +00:00
Glenn Maynard 78c8e11290 add LuaHelpers::AbsIndex 2006-09-26 01:28:10 +00:00
Glenn Maynard 1554e02329 always use our headers 2006-09-25 07:36:14 +00:00
Glenn Maynard de88aa1d94 remove unused 2006-09-25 06:52:46 +00:00
Glenn Maynard 0d05ebd9b5 always leave iReturnValues on the stack, even on error, so error handling can just log the error and continue as if nil was actually returned 2006-09-23 02:44:35 +00:00
Glenn Maynard 59e1be60e6 simplify RunExpressionX. Don't check for function returns;
it's confusing to do it inconsistently.  Now, this code
path looks like the theme metric one.
2006-09-23 02:11:54 +00:00
Glenn Maynard 13f33de79a allow passing sName for expressions 2006-09-23 02:09:58 +00:00
Glenn Maynard 494c3cd485 LuaHelpers::RunExpression 2006-09-22 18:53:39 +00:00
Glenn Maynard 709a790f1c change arg order 2006-09-22 08:48:49 +00:00
Glenn Maynard f29762c59e change arg order 2006-09-22 08:38:30 +00:00
Glenn Maynard 557563e81d cleanup 2006-09-22 08:33:20 +00:00
Steve Checkoway 6ad2454400 Cleanup. 2006-09-21 07:25:38 +00:00
Steve Checkoway 175ae8cac4 I ended up not using this. 2006-09-21 07:19:13 +00:00
Steve Checkoway 93a5184cfd Simplify. Now FromStack() is unused except for Pop(). 2006-09-21 07:12:49 +00:00
Steve Checkoway d7e64dc979 Simplify. PushStack was only calling Push and possibly generating a function for each enumerated type which in the end only called Push. Rename PopStack -> Pop to be symmetric with Push. 2006-09-21 07:06:18 +00:00
Steve Checkoway 064f147f84 Unneeded. 2006-09-21 06:52:39 +00:00
Glenn Maynard 1749779ca8 merge ResetState into ctor 2006-09-20 23:47:08 +00:00
Glenn Maynard 494523f741 make RegisterTypes public 2006-09-20 23:31:54 +00:00
Steve Checkoway a7487918b1 Helper for simple lua function calls. 2006-08-18 00:04:08 +00:00
Steve Checkoway 6d653c7047 GetLuaInformation() returns nodes containing the registered global lua functions, classes with their associated methods, constants, and singletons. 2006-08-08 07:43:12 +00:00
Glenn Maynard 21cd26308e remove unused 2006-08-02 04:50:29 +00:00
Chris Danford 7f821e8cfc CString -> RString 2006-01-22 01:00:06 +00:00
Glenn Maynard 029f9343f6 revert 2006-01-14 18:02:54 +00:00
Jason Felds fb8dfc6309 Use proper relative paths to include the headers. 2006-01-14 17:59:19 +00:00
Glenn Maynard 476a0990ff SetGlobal(float) 2005-11-29 05:24:48 +00:00
Chris Danford 32286d12e6 add <Param /> child of a node for setting Lua globals while loading a node 2005-07-22 19:57:42 +00:00
Glenn Maynard 72e7a4b1e4 cleanup 2005-06-20 04:32:24 +00:00
Glenn Maynard bcbae8d01f private L 2005-06-16 22:27:11 +00:00
Glenn Maynard b974b1bdd4 LuaHelpers::PrepareExpression 2005-06-16 22:22:37 +00:00
Glenn Maynard 9a50b17b9d LuaHelpers::RunAtExpressionS
LuaManager::ResetState, LuaHelpers::RunScriptFile locking
2005-06-16 22:17:45 +00:00
Glenn Maynard d48bce4b66 remove unused 2005-06-16 06:44:50 +00:00
Glenn Maynard dd3b227562 LuaHelpers::RunExpressionI, LuaHelpers::RunExpressionS 2005-06-16 06:37:45 +00:00
Glenn Maynard cb3f10aabb LuaHelpers::RunExpressionF 2005-06-16 06:30:33 +00:00
Glenn Maynard 6a8940d5a4 LuaHelpers::RunExpressionB 2005-06-16 06:23:59 +00:00
Glenn Maynard 914acb4b7b LuaHelpers::RunScript 2005-06-16 06:17:32 +00:00
Glenn Maynard b93399da8c LuaHelpers::RunScriptFile 2005-06-16 06:10:50 +00:00
Glenn Maynard fc16f2625d LuaManager::RunScript -> LuaHelpers::RunScript.
(Functions in LuaManager can accidentally bypass locking semantics, so
they should be kept to a minimum.)
2005-06-16 06:00:39 +00:00
Glenn Maynard dd138bfbc2 remove unnecessary 2005-06-16 05:46:37 +00:00
Glenn Maynard 7239c06e5d remove unused RunAtExpressionF 2005-06-16 05:40:36 +00:00
Glenn Maynard 8557623212 move CreateTableFromArrayB and ReadArrayFromTableB into LuaHelpers; L argument first, like Lua functions (it was only at the end because it was an optional parameter) 2005-06-16 05:37:31 +00:00
Glenn Maynard 533d773bd0 remove default 2005-06-16 03:03:05 +00:00
Glenn Maynard cfa50fd225 remove GetStack 2005-06-15 08:37:54 +00:00
Glenn Maynard 4c6aa1ea65 remove nonexistant function 2005-06-15 08:36:49 +00:00
Glenn Maynard d7b09d366e remove PushStackNil 2005-06-15 08:36:06 +00:00
Glenn Maynard 6bfb3f0bad pass L to LuaHelpers::TypeError 2005-06-15 08:33:26 +00:00
Glenn Maynard cd30a6b852 remove default parameters 2005-06-15 08:30:43 +00:00
Glenn Maynard 52f0d9d74c pull code out of the header 2005-06-15 08:21:38 +00:00