mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-31 05:00:35 +00:00
Fix send_message().
This commit is contained in:
parent
29fbc3b073
commit
690ae1cb57
1 changed files with 16 additions and 9 deletions
|
@ -252,15 +252,22 @@ copy_keywordargs (const keywordarg_t *kwargs)
|
||||||
expr_t *
|
expr_t *
|
||||||
send_message (int super)
|
send_message (int super)
|
||||||
{
|
{
|
||||||
return 0;
|
symbol_t *sym;
|
||||||
#if 0 //FIXME
|
const char *sm_name = "obj_msgSend";
|
||||||
if (super)
|
type_t *sm_type = &type_IMP;
|
||||||
return new_def_expr (get_def (&type_supermsg, "obj_msgSend_super",
|
|
||||||
pr.scope, st_extern));
|
if (super) {
|
||||||
else
|
sm_name = "obj_msgSend_super";
|
||||||
return new_def_expr (get_def (&type_IMP, "obj_msgSend", pr.scope,
|
sm_type = &type_IMP;
|
||||||
st_extern));
|
}
|
||||||
#endif
|
sym = symtab_lookup (pr.symtab, sm_name);
|
||||||
|
if (!sym) {
|
||||||
|
sym = new_symbol_type (sm_name, sm_type);
|
||||||
|
sym = function_symbol (sym, 0, 1);
|
||||||
|
make_function (sym, 0, st_extern);
|
||||||
|
symtab_addsymbol (pr.symtab, sym);
|
||||||
|
}
|
||||||
|
return new_symbol_expr (sym);
|
||||||
}
|
}
|
||||||
|
|
||||||
method_t *
|
method_t *
|
||||||
|
|
Loading…
Reference in a new issue