sumankhanal

nativecall-c-Mu

Jun 14th, 2020
120
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /* this is C code test.c */
  2.  
  3. #include <math.h>
  4. #include <stdio.h>
  5.  
  6. void custom() {
  7.     printf("Hello world !");
  8. }
  9.  
  10. =======================================
  11.  
  12. # Now calling via nativecall in raku
  13. use NativeCall;
  14.  
  15. sub custom() is native('libtest') { * };
  16.  
  17. say custom()
  18.  
  19. ===================================
  20. I get this output:
  21.  
  22. (Mu)
  23. Hello world !
  24.  
  25. Why is this (Mu). How to stop it from appearing ?
RAW Paste Data Copied