Paste: ffi test

Author: accel
Mode: factor
Date: Wed, 15 Dec 2010 10:41:15
Plain Text |
"raw" "/home/accel/src/tst/raw.so" cdecl add-library
"raw" load-library  drop

! LIBRARY: raw
FUNCTION: int my_add ( int x, int y ) ;

: ffi-test ( -- )
  1 2 my_add . ;


MAIN: ffi-test

Annotation: ffi test

Author: accel
Mode: factor
Date: Wed, 15 Dec 2010 10:42:26
Plain Text |
"raw" "/home/accel/src/tst/raw.so" cdecl add-library
"raw" load-library  drop

LIBRARY: raw
FUNCTION: int my_add ( int x, int y ) ;

: ffi-test ( -- )
  1 2 my_add . ;


MAIN: ffi-test

Annotation: ffi test 3

Author: accel
Mode: factor
Date: Wed, 15 Dec 2010 10:48:12
Plain Text |
<< "raw" "/home/accel/src/tst/raw.so" cdecl add-library >> 

LIBRARY: raw
FUNCTION: int my_add ( int x, int y ) ;

: ffi-test ( -- )
  1 2 my_add . ;

New Annotation

Summary:
Author:
Mode:
Body: