bigloo icon indicating copy to clipboard operation
bigloo copied to clipboard

return void from scheme function

Open izarif opened this issue 4 years ago • 0 comments

Hello, is there any way to export a scheme function with the following declaration (fire-scalpel::void id::int) to the C world?

For example

(module example
        (extern
          (include "g_local.h")
          (export fire-scalpel "Weapon_Scalpel_Fire"))
        (export (fire-scalpel::void ::int)))

(define (fire-scalpel::void id::int)
  #f)

How to "return void" from the fire-scalpel function? Weapon_Scalpel_Fire is already declared in g_local.h as void Weapon_Scalpel_Fire(int id); and I would not like to change g_local.h

izarif avatar May 20 '21 09:05 izarif