|
|
|
|
|
by kokonoko
1268 days ago
|
|
Creating a separate gcc plugin for this seems unnecessary if I am not misunderstanding something. Just ensure the invariant function is called at every method, in debug builds maybe. You could of course change the object properties without using a method but then you have bigger problems. |
|
You make this sound way easier than I would expect it to be in the general case.