tgba_digraph: Simplify declaration of forwarded methods.
* src/misc/common.hh (SPOT_RETURN): New macro. * src/tgba/tgbagraph.hh (out, states, transitions): Use it.
This commit is contained in:
parent
6ecd71c485
commit
df05162780
2 changed files with 18 additions and 10 deletions
|
|
@ -95,4 +95,9 @@
|
|||
|
||||
#define SPOT_UNIMPLEMENTED() throw std::runtime_error("unimplemented");
|
||||
|
||||
|
||||
// Useful when forwarding methods such as:
|
||||
// auto func(int param) SPOT_RETURN(implem_.func(param));
|
||||
#define SPOT_RETURN(code) -> decltype(code) { return code; }
|
||||
|
||||
#endif // SPOT_MISC_COMMON_HH
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue