You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FEAT: Modified the structure of the Rebol native code specification in C files
Now it looks more like the default Rebol source code header banner.
This is full example of the native function including it's Rebol specification:
```
/***********************************************************************
**
*/ REBNATIVE(sin)
/*
// sin: native [
// {Returns the trigonometric sine.}
// value [decimal!] "In radians"
// ]
***********************************************************************/
{
SET_DECIMAL(D_RET, sin(VAL_DECIMAL(D_ARG(1))));
return R_RET;
}
```
NOTE: these definitions are parsed in tools/make-headers.r script
At this moment the parser don't work with C preprocessing - so it would collect also code from #ifndef blocks - this must be improved!
0 commit comments