Deferred execution utility similar to defer keyword in other languages 더 자세히 ...
#include <end.hpp>
Public 멤버 함수 | |
| end (std::function< void(void)> l) | |
Deferred execution utility similar to defer keyword in other languages
Delays code execution until the end of the current scope. Similar to the defer keyword found in languages like Go or Swift.
In byeolang, end registers code to be executed when exiting the current function. In C++, this is implemented using RAII and is limited to scope boundaries rather than function boundaries.
Use the provided macros for convenient deferred execution: