guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help needed on strange random error (Guile 2.0.9)


From: Ludovic Courtès
Subject: Re: Help needed on strange random error (Guile 2.0.9)
Date: Tue, 10 Dec 2013 09:46:26 +0100
User-agent: Gnus/5.130007 (Ma Gnus v0.7) Emacs/24.3 (gnu/linux)

Sun Yijiang <address@hidden> skribis:

> static void _main(void *data, int argc, char* argv[]) {
>     // smob definitions
>     DEFINE_SMOB(....)
>     ...
>
>     scm_c_define_module("builtin", init_builtins, NULL);
>     scm_c_eval_string(
>         "(current-warning-port (%make-void-port \"w\"))"
>         "(read-set! keywords 'prefix)"
>         "(add-to-load-path \"/my/scm/path\")"
>         "(use-modules (builtin) (ice-9 readline)) (activate-readline)"
>         );
>     scm_shell(argc, argv);
> }

Could you add this line right after the ‘scm_c_define_module’ line:

  scm_write (scm_current_module (), scm_current_error_port ());

What does it print?

Ludo’.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]