forum-msg-id-126945-edit

Original date:2015-02-13 00:25:52 Edited by: useful Subject: Re: boot strapping euphoria idea

In the Harbour( https://harbour.github.io/ ) there is a possibility to insert fragments of C code in the prg file. This may be conveniently, if you don't want to create a .c file for a pair of C functions and then putting it in the project. This can be done with the help of directives #pragma BEGINDUMP ... #pragma ENDDUMP.

  1. pragma BEGINDUMP
  2. include < extend.h >
  3. include < math.h > HB_FUNC( SIN ) { double x = hb_parnd(1); hb_retnd( sin( x ) ); }
  4. pragma ENDDUMP
Not Categorized, Please Help

Search



Quick Links

User menu

Not signed in.

Misc Menu