manuel-serrano / bigloo

a practical Scheme compiler
http://www-sop.inria.fr/indes/fp/Bigloo
Other
135 stars 19 forks source link

return void from scheme function #67

Open izarif opened 3 years ago

izarif commented 3 years ago

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