milis92 / Krang

Kotlin Compiler Plugin that gives you the ability to be notified every time annotated function is called
Apache License 2.0
35 stars 1 forks source link

Better runtime library #21

Closed milis92 closed 2 years ago

milis92 commented 2 years ago

Runtime library should be better designed to hide some of the implementation details. One example would be a interceptFunctionCall function that should be available only to the compiled code

Another improvement would be naming of the function - we are not intercepting things but rather firing a callback

milis92 commented 2 years ago

I've opted in not to hide interceptFunctionCall since it's a minor utility that would require a bit of work to be extracted into a separate artifact and included as a runtime-only dependency.