guile-devel
[Top][All Lists]
Advanced

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

Calling function (command-line) from c++ dll


From: Laurent Marzullo
Subject: Calling function (command-line) from c++ dll
Date: Mon, 17 Nov 2003 10:31:35 +0100

Hello,

I'm currently writting a module that I load with (load-extension)
function and I'm tryin to get the command line option of the guile
script into the init function of the dll.


------ guile script ----------------------------
#!/usr/local/bin/guile -s
!#
(load-extension "libpvcs" "init_pvcs")
-----------------------------------------------


------ c++ source file -------------------------
void
init_pvcs( void )
{
    SCM command_line_func = scm_c_lookup( "command-line" );

    // Now I'm trying to call command-line, which must return
    // a list, isn't it ???
    //
    SCM arg_lst = scm_c_call_with_current_module(
        scm_current_module(),
        ????????? , 
        0 );
    // How do I call it ?? 
}
------------------------------------------------

How to call command-line from a C module ?????
Thanks a lot !!

-- 
Laurent Marzullo <address@hidden>





reply via email to

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