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

define pointer to function #135

Open
mopo3ilo opened this issue Nov 5, 2022 · 1 comment
Open

define pointer to function #135

mopo3ilo opened this issue Nov 5, 2022 · 1 comment

Comments

@mopo3ilo
Copy link

mopo3ilo commented Nov 5, 2022

[email protected]

tcl.h 8.6.12

/*
 * Special freeProc values that may be passed to Tcl_SetResult (see the man
 * page for details):
 */

#define TCL_VOLATILE		((Tcl_FreeProc *) 1)
#define TCL_STATIC		((Tcl_FreeProc *) 0)
#define TCL_DYNAMIC		((Tcl_FreeProc *) 3)

result

// Volatile as defined in include/tcl.h:1085
Volatile = ( ( FreeProc * )( 1 ))
// Static as defined in include/tcl.h:1086
Static = ( ( FreeProc * )( 0 ))
// Dynamic as defined in include/tcl.h:1087
Dynamic = ( ( FreeProc * )( 3 ))
@lotodore
Copy link
Contributor

lotodore commented Nov 16, 2022

After taking a deep breath, and making a mental note never to use TCL (because one simply does not do things like this):

What would be the expected behaviour?

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