Changeset 18134 in project


Ignore:
Timestamp:
05/22/10 00:10:07 (9 years ago)
Author:
felix winkelmann
Message:

added note about gc in callbacks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/eggref/4/crunch

    r17525 r18134  
    128128Equivalent to {{define-external}}, but makes the callback accessible in subsequent
    129129translations of crunch code.
     130
     131Note that you have to pass {{-emit-external-prototypes-first}} to
     132{{csc}} (or {{chicken}}) when you use crunch callbacks to place
     133function prototypes for the callbacks in front of code generated by
     134crunch.
    130135
    131136
     
    177182<td>[[http://srfi.schemers.org/srfi-4/|SRFI-4]] homogenous number vectors</td></tr>
    178183</table>
     184
     185Important: callbacks are likely to trigger a garbage
     186collection, which will invalidate references to number-vectors or
     187strings allocated in normal Scheme code. This does not apply to data allocated
     188inside crunched code, which is not subject to garbage collection.
    179189
    180190Variables defined with {{define}} or {{set!}} or bound with {{let}} or
Note: See TracChangeset for help on using the changeset viewer.