static int l_csb_##luaname(lua_State *L) \
{ \
double *value = getDoubleOrFixed(L, 2); \
if (value == nullptr) \
return luaL_error(L, "Bad datatype. Expected fixed or float, got %s", luaL_typename(L, 2)); \
if (*value < 0.0) \
Output("Error: Custom system definition: Value cannot be negative (%lf) for %s : %s\n", \
lua_settop(L, 1); \
return 1; \
}
Definition: CustomSystem.h:18
SystemBodyData bodyData
Definition: CustomSystem.h:30
std::string m_name
Definition: SystemBody.h:96
static fixedf FromDouble(const double val)
Definition: fixed.h:194