version 3.12.1

add piliterals.h
This commit is contained in:
2023-06-29 18:20:24 +03:00
parent 6c6437e980
commit d1193e7aa1
3 changed files with 115 additions and 2 deletions

View File

@@ -25,8 +25,15 @@ REGISTER_VARIANT_CAST(PIString, SomeType) {
PIStringList sl = v.split(';').resize(2);
return SomeType{sl[0].toInt(), sl[1].toFloat()};
}
#include "piliterals.h"
int main(int argc, char * argv[]) {
// clang-format off
piCout << 2_MB;
piCout << 2.1_MB;
piCout << 2_MiB;
piCout << 2.1_MiB;
// clang-format on
return 0;
/*PIValueTree root;
root.addChild({"bool", PIVariant(false)});
root.addChild({"integer", PIVariant(256)});