Elias Mårtenson <
address@hidden> schrieb am Di., 7. Feb. 2017 um 04:16 Uhr:
The big restriction is that its lifetime is limited to the lifetime (storage duration) of the argument that is used to obtain the pointer. I.e. in a function
emacs_value module_fun(emacs_env* env, ...) { ... }
the environment represented by env is only valud in the body of module_fun; reusing env or *env once the body is finished is undefined behavior.
(I'm aware that this is not documented at all, and I've been meaning to write some documentation for a while.)