[ruamoko] Correct decls for functions using PF_VarString

Need to ensure va_list gets into the arguments so PF_VarString can work
with Ruamoko progs.
This commit is contained in:
Bill Currie 2022-02-04 22:31:36 +09:00
parent 2fc35b39b0
commit f94d5e9fdb
4 changed files with 8 additions and 8 deletions

View file

@ -62,18 +62,18 @@
/**
Print a string to the console if the "developer" Cvar is nonzero.
*/
@extern void dprint (string str);
@extern void dprint (.../*string str*/);
/**
Abort (crash) the server. "str" is the message the server crashes with.
*/
@extern void error (string str);
@extern void error (.../*string str*/);
/**
Prints info on the "self" ENTITY (not object), and error message "e".
The entity is freed.
*/
@extern void objerror (string e);
@extern void objerror (.../*string e*/);
//\}
#endif //__ruamoko_debug_h

View file

@ -35,7 +35,7 @@
#define MULTICAST_PVS_R 5
@extern void bprint (...);
@extern void sprint (entity client, string s);
@extern void sprint (.../*entity client, string s*/);
@extern void WriteBytes (float to, ...);
@extern void WriteByte (float to, float f);
@extern void WriteChar (float to, float f);

View file

@ -5,6 +5,6 @@ void coredump (void) = #28;
void traceon (void) = #29;
void traceoff (void) = #30;
void eprint (entity e) = #31;
void dprint (string str) = #25;
void error (string str) = #10;
void objerror (string e) = #11;
void dprint (.../*string str*/) = #25;
void error (.../*string str*/) = #10;
void objerror (.../*string e*/) = #11;

View file

@ -1,7 +1,7 @@
#include <message.h>
void (...) bprint = #23;
void (entity client, string s) sprint = #24;
void (.../*entity client, string s*/) sprint = #24;
void (float to, float f) WriteByte = #52;
void (float to, float f) WriteChar = #53;
void (float to, float f) WriteShort = #54;