Migrate more strings
FossilOrigin-Name: e7b5d33cada1ff8db653655ab2c77ead76ab7625a5d2f793b9aee3ec21e3778b
This commit is contained in:
parent
b00de734e8
commit
2860953c0b
24 changed files with 692 additions and 556 deletions
17
src/cube.h
17
src/cube.h
|
@ -110,7 +110,7 @@ struct block {
|
|||
};
|
||||
struct mapmodelinfo {
|
||||
int rad, h, zoff, snap;
|
||||
char *name;
|
||||
const char *name;
|
||||
};
|
||||
|
||||
enum {
|
||||
|
@ -379,7 +379,7 @@ enum // function signatures for script functions, see command.cpp
|
|||
ARG_3INT,
|
||||
ARG_4INT,
|
||||
ARG_NONE,
|
||||
ARG_1CSTR,
|
||||
ARG_1STR,
|
||||
ARG_2STR,
|
||||
ARG_3STR,
|
||||
ARG_5STR,
|
||||
|
@ -389,8 +389,7 @@ enum // function signatures for script functions, see command.cpp
|
|||
ARG_2EXP,
|
||||
ARG_1EST,
|
||||
ARG_2EST,
|
||||
ARG_VARI,
|
||||
ARG_1STR
|
||||
ARG_VARI
|
||||
};
|
||||
|
||||
// nasty macros for registering script functions, abuses globals to avoid
|
||||
|
@ -408,8 +407,8 @@ enum // function signatures for script functions, see command.cpp
|
|||
OF_CONSTRUCTOR() \
|
||||
{ \
|
||||
enqueueInit(^{ \
|
||||
name = \
|
||||
variable(#name, min, cur, max, &name, NULL, true); \
|
||||
name = variable( \
|
||||
@ #name, min, cur, max, &name, NULL, true); \
|
||||
}); \
|
||||
}
|
||||
#define VAR(name, min, cur, max) \
|
||||
|
@ -418,7 +417,7 @@ enum // function signatures for script functions, see command.cpp
|
|||
{ \
|
||||
enqueueInit(^{ \
|
||||
name = variable( \
|
||||
#name, min, cur, max, &name, NULL, false); \
|
||||
@ #name, min, cur, max, &name, NULL, false); \
|
||||
}); \
|
||||
}
|
||||
#define VARF(name, min, cur, max, body) \
|
||||
|
@ -428,7 +427,7 @@ enum // function signatures for script functions, see command.cpp
|
|||
{ \
|
||||
enqueueInit(^{ \
|
||||
name = variable( \
|
||||
#name, min, cur, max, &name, var_##name, false); \
|
||||
@ #name, min, cur, max, &name, var_##name, false); \
|
||||
}); \
|
||||
} \
|
||||
void var_##name() { body; }
|
||||
|
@ -439,7 +438,7 @@ enum // function signatures for script functions, see command.cpp
|
|||
{ \
|
||||
enqueueInit(^{ \
|
||||
name = variable( \
|
||||
#name, min, cur, max, &name, var_##name, true); \
|
||||
@ #name, min, cur, max, &name, var_##name, true); \
|
||||
}); \
|
||||
} \
|
||||
void var_##name() { body; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue