l_dgnlvl.cc File Reference

#include "AppHdr.h"
#include "cluautil.h"
#include "l_libs.h"
#include "branch.h"
#include "player.h"

Include dependency graph for l_dgnlvl.cc:


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 Documentation

#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   ) 

Value:

LUAFN(dgn_br_##name) {           \
BRANCH(br, 1);                   \
PLUARET(type, expr);             \
}


Function Documentation

BRANCHFN ( parent_branch  ,
string  ,
br.  parent_branch = = NUM_BRANCHES ? "" : branches[br.parent_branch].abbrevname 
)


Generated on Thu Jan 13 13:08:03 2011 by  doxygen 1.5.6