Implemented the keyword argument parser.
This commit is contained in:
@@ -463,10 +463,10 @@ LuaDefine(table_diffcompare, "mtnmap,mtab,stnmap,stab", "for unit testing only")
|
||||
LuaVar tthread;
|
||||
LuaStack MLS(L, mtnmap, mtab, mstnmap, mstab, dbgstring, tthread);
|
||||
// Check the arguments.
|
||||
MLS.checktable(mtnmap);
|
||||
MLS.checktable(mstnmap);
|
||||
MLS.checktable(mtab);
|
||||
MLS.checktable(mstab);
|
||||
MLS.checktable(mtnmap, "mtnmap");
|
||||
MLS.checktable(mstnmap, "mstnmap");
|
||||
MLS.checktable(mtab, "mtab");
|
||||
MLS.checktable(mstab, "mstab");
|
||||
|
||||
// Create a temporary thread to be the 'synch model'. We'll use the
|
||||
// existing thread as the 'master model'. Move two tables to the synch thread.
|
||||
@@ -493,9 +493,9 @@ LuaDefine(table_diffapply, "mtnmap,mtab,mstab", "for unit testing only") {
|
||||
LuaVar tthread, tangibles, mntmap, key, val;
|
||||
LuaStack MLS(L, mtnmap, mtab, mstab, eql, eqlstr, rtab, tthread, tangibles, mntmap, key, val);
|
||||
// Check the arguments.
|
||||
MLS.checktable(mtnmap);
|
||||
MLS.checktable(mtab);
|
||||
MLS.checktable(mstab);
|
||||
MLS.checktable(mtnmap, "mtnmap");
|
||||
MLS.checktable(mtab, "mtab");
|
||||
MLS.checktable(mstab, "mstab");
|
||||
|
||||
// Get the tangibles map.
|
||||
MLS.rawget(tangibles, LuaRegistry, "tangibles");
|
||||
|
||||
Reference in New Issue
Block a user