TzuChieh / Photon-v2

A program that takes photographs of a virtual world.
https://tzuchieh.github.io/Photon-v2-site/engine_docs/v2.0.0-beta/Photon/html/index.html
MIT License
84 stars 5 forks source link

Able to log once #76

Open TzuChieh opened 1 year ago

TzuChieh commented 1 year ago

For example, we can have a single macro PH_LOG() and specify the log level directly in the second parameter. LogLevel should have several members such as NoteOnce, WarningOnce, ErrorOnce.

Might not need to specify the enum name LogLevel repetitively in the log macro, just specify the member name and the macro should take care of it (adding the enum name for you).

TzuChieh commented 6 months ago