mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-30 13:21:04 +00:00
- silenced message about missing function prototypes for exports.
This is necessary to later separate the games' script content from each other because there'd be lots of unprototyped functions otherwise.
This commit is contained in:
parent
d5ff87fa4f
commit
4e6e564e14
2 changed files with 23 additions and 2 deletions
|
@ -242,6 +242,27 @@ DEFINE_ACTION_FUNCTION(FFont, BreakLines)
|
||||||
ACTION_RETURN_OBJECT(Create<DBrokenLines>(broken));
|
ACTION_RETURN_OBJECT(Create<DBrokenLines>(broken));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
DEFINE_ACTION_FUNCTION(FFont, BreakLines2)
|
||||||
|
{
|
||||||
|
PARAM_SELF_STRUCT_PROLOGUE(FFont);
|
||||||
|
PARAM_STRING(text);
|
||||||
|
PARAM_INT(maxwidth);
|
||||||
|
|
||||||
|
auto broken = V_BreakLines(self, maxwidth, text, true);
|
||||||
|
ACTION_RETURN_OBJECT(Create<DBrokenLines>(broken));
|
||||||
|
}
|
||||||
|
|
||||||
|
DEFINE_ACTION_FUNCTION(_Hugohaft, BreakLines)
|
||||||
|
{
|
||||||
|
PARAM_SELF_STRUCT_PROLOGUE(FFont);
|
||||||
|
PARAM_STRING(text);
|
||||||
|
PARAM_INT(maxwidth);
|
||||||
|
|
||||||
|
auto broken = V_BreakLines(self, maxwidth, text, true);
|
||||||
|
ACTION_RETURN_OBJECT(Create<DBrokenLines>(broken));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
bool generic_ui;
|
bool generic_ui;
|
||||||
EXTERN_CVAR(String, language)
|
EXTERN_CVAR(String, language)
|
||||||
|
|
|
@ -79,8 +79,8 @@ void VMFunction::CreateRegUse()
|
||||||
int count = 0;
|
int count = 0;
|
||||||
if (!Proto)
|
if (!Proto)
|
||||||
{
|
{
|
||||||
if (RegTypes) return;
|
//if (RegTypes) return;
|
||||||
Printf(TEXTCOLOR_ORANGE "Function without prototype needs register info manually set: %s\n", PrintableName.GetChars());
|
//Printf(TEXTCOLOR_ORANGE "Function without prototype needs register info manually set: %s\n", PrintableName.GetChars());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
assert(Proto->isPrototype());
|
assert(Proto->isPrototype());
|
||||||
|
|
Loading…
Reference in a new issue