This commit is contained in:
Ben Kyd
2023-02-28 14:06:49 +00:00
parent 3f715ed57c
commit 054170b916
5 changed files with 163 additions and 0 deletions

17
example/example.cpp Normal file
View File

@@ -0,0 +1,17 @@
#include "yolo/yolo.hpp"
int main(int, char**)
{
int x = 12;
int y = 3;
yolo::info("value for x is {} and value for y is {}", x, y);
auto mod = yolo::registerModule("COMPONENT", "\u001b[35;1m");
yolo::info(mod, "value for x is {} and value for y is {}", x, y);
yolo::warn(mod, "value for x is {} and value for y is {}", x, y);
yolo::error(mod, "value for x is {} and value for y is {}", x, y);
yolo::debug(mod, "value for x is {} and value for y is {}", x, y);
return 0;
}