libjit
[Top][All Lists]
Advanced

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

[Libjit] Why is jit_value_create_long_constant used to parse pointer?


From: Peng Yu
Subject: [Libjit] Why is jit_value_create_long_constant used to parse pointer?
Date: Wed, 20 Feb 2019 10:35:39 -0600

Hi,

I see this piece of code. But it converts a string pointer to a long
type. Is it better to have an interface for pointers in libjit (I
don't find it)? Thanks.

jit_value_t hostmemptr = jit_value_create_long_constant(
      F, type_cstring, (long)"foobar");

https://eli.thegreenplace.net/2013/11/12/getting-started-with-libjit-part-2

-- 
Regards,
Peng



reply via email to

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