You are here

LISP, C lib extension, global variables

1 post / 0 new
tmgofer
Offline
Last seen: 3 months 2 days ago
VESC Free
Joined: 2023-07-31 11:55
Posts: 7
LISP, C lib extension, global variables

Hi,

Am I right thinking that using of global variables to store context between consecutive calls of my C_lib function providing extension to LISP is NOT a good idea? Especially if the function is to be eventually transferred to FLASH... 
Looks like lib_info::arg parameter provided in init function is the way forward. I'm just looking for confirmation or discussion in this topic.

Cheers
M