Warning cleanup. Etc.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5003 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
ddf75082c1
commit
66036e07bd
4 changed files with 36 additions and 10 deletions
|
|
@ -829,3 +829,28 @@ DohGetmark(DOH *ho) {
|
|||
DohBase *h = (DohBase *) ho;
|
||||
return h->flag_usermark;
|
||||
}
|
||||
|
||||
/* -----------------------------------------------------------------------------
|
||||
* DohCall()
|
||||
*
|
||||
* Invokes a function via DOH. A Function is represented by a hash table with
|
||||
* the following attributes:
|
||||
*
|
||||
* "builtin" - Pointer to built-in function (if any)
|
||||
*
|
||||
* (Additional attributes may be added later)
|
||||
*
|
||||
* Returns a DOH object with result on success. Returns NULL on error
|
||||
* ----------------------------------------------------------------------------- */
|
||||
|
||||
DOH *
|
||||
DohCall(DOH *func, DOH *args) {
|
||||
DOH *result;
|
||||
DOH *(*builtin)(DOH *);
|
||||
|
||||
builtin = (DOH *(*)(DOH *)) GetVoid(func,"builtin");
|
||||
if (!builtin) return 0;
|
||||
result = (*builtin)(args);
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue