#include "AppHdr.h"
#include "cluautil.h"
#include "l_libs.h"
#include "branch.h"
#include "player.h"
Defines | |
#define | BRANCH(br, pos) |
#define | BRANCHFN(name, type, expr) |
Functions | |
BRANCHFN (parent_branch, string, br.parent_branch==NUM_BRANCHES?"":branches[br.parent_branch].abbrevname) static void _push_level_id(lua_State *ls |
#define BRANCH | ( | br, | |||
pos | ) |
Value:
const char *branch_name = luaL_checkstring(ls, pos); \ branch_type req_branch_type = str_to_branch(branch_name); \ if (req_branch_type == NUM_BRANCHES) \ luaL_error(ls, "Expected branch name"); \ Branch &br = branches[req_branch_type]
#define BRANCHFN | ( | name, | |||
type, | |||||
expr | ) |
BRANCHFN | ( | parent_branch | , | |
string | , | |||
br. | parent_branch = = NUM_BRANCHES ? "" : branches[br.parent_branch].abbrevname | |||
) |