Is there a way to add flags to a function?

Godot Version

4.4 beta 3

Question

Is it possible to give flags to a function in a decorator-like way?

I am working on a dev tool which registers certain functions in an array, and… sure, i could make an UI which lets the user select which functions they want to use, but having a decorator-like way to state it in code would be much more reasonable and dev-friendly i feel

@export_flags("toggle_func_arg:1", "toggle_func_arg:4096", ) var flags:int
then have a node with funcs which you want to toggle and check if flag enabled like:
if flags & 4096: print("OK")
inspector will add nice looking flags toggler
its not what you asked but with it possible to make togglable debug draws and so on…