debug icon indicating copy to clipboard operation
debug copied to clipboard

Feature request: support non-alphanumberic characters in debug names

Open stephenmathieson opened this issue 10 years ago • 3 comments

No idea how we'd handle it with the current impl (may need a rewrite :/), but I'd greatly appreciate being able to use non-alphanumberic chars when defining debugs.

For example:

debug_init(clib);
debug_init(clib:install);
debug_init(clib:search);
debug_init(clib:help);

stephenmathieson avatar Jun 22 '14 01:06 stephenmathieson

I'm not sure how we'd do this either, but that would be great. Do you have any implementation ideas ?

jwerle avatar Jun 23 '14 15:06 jwerle

Nothing nice comes to mind. Maybe a hashmap of debuggers? Then, we could:

#define debug_get(name) (debug_t) hash_get(debugger_hash_map, #name)

On Mon, Jun 23, 2014 at 11:25 AM, Joseph Werle [email protected] wrote:

I'm not sure how we'd do this either, but that would be great. Do you have any implementation ideas ?

— Reply to this email directly or view it on GitHub https://github.com/clibs/debug/issues/8#issuecomment-46859960.

stephenmathieson avatar Jun 23 '14 15:06 stephenmathieson

Hmm I'll play with it later and see what I can come up with

jwerle avatar Jun 23 '14 15:06 jwerle