Plan 9 from Bell Labs’s /usr/web/sources/contrib/fernan/nhc98/src/runtime/Builtin/cProfile.c

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.



#include <errno.h>

#include "haskell2c.h"

/* cProfile primitive 1 :: CString -> () */

C_HEADER(cProfile)
{
#ifdef PROFILE
  NodePtr msgptr;
  char *msg;
  msgptr = C_GETARG1(1);
  IND_REMOVE(msgptr);
  msg = nhc_getPackedString(msgptr);
  do_comment(msg);
#endif
  C_RETURN(nhc_mkUnit());
}

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to [email protected].