I have an
enum EntryPoints {
A(),
B(),
}
Is it possible to create a macro to adds an enum case, like this?
use some_lib::make_callback;
enum EntryPoints {
A(),
B(),
make_callback!(),
}
which expands to smething like
enum EntryPoints {
A(),
B(),
SomeLibCallback(data: u64),
}
All my attempts to create a very simple example lead to syntax errors and I don't find anything on the web.