Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

C API - jl_exception_occurred() returns true right after jl_init() #6134

Closed
felipecruz opened this issue Mar 12, 2014 · 1 comment
Closed

Comments

@felipecruz
Copy link

Hello.

I'm running this little example, on master, but the result is surpriging.

#include <julia.h>
#include <stdio.h>

int main()
{
    jl_init(NULL);

    if (jl_exception_occurred()) {
        printf("Exception occured\n");
    }

    return 0;
}

Does this mean that after jl_init() I should call jl_exception_clear()?

@vtjnash
Copy link
Sponsor Member

vtjnash commented Mar 13, 2014

we probably should clean it up, but we use exceptions to figure out what BLAS is in use. we should probably be using dlsym_e instead

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants