Category "flags"

How to add custom flag in CMake building

My main goal is to use a flag when building a project in command line. So I can add own flags like DEBUG or MY_FLAG. #ifdef DEBUG #define debug_print(format, ..

Convert binary string to flags in typescript

I have a binary string which I want to convert to the equivalent flag enum value. My attempt: const permissionNum = parseInt(this.auth.decodedToken.permissions