Orthodox C++ (sometimes referred as C+) is minimal subset of C++ that improves C, but avoids all unnecessary things from so called Modern C++. It's exactly opposite of what Modern C++ suppose to be.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://clang.llvm.org/docs/ClangFormat.html | |
# https://clang.llvm.org/docs/ClangFormatStyleOptions.html | |
--- | |
Language: Cpp | |
AlignAfterOpenBracket: Align | |
AlignConsecutiveAssignments: false # although we like it, it creates churn | |
AlignConsecutiveDeclarations: false | |
AlignEscapedNewlinesLeft: true | |
AlignOperands: true | |
AlignTrailingComments: false # churn |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
def j(lineno): | |
frame = sys._getframe().f_back | |
called_from = frame | |
def hook(frame, event, arg): | |
if event == 'line' and frame == called_from: | |
try: | |
frame.f_lineno = lineno |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <idc.idc> | |
static FuncDump(f, start) | |
{ | |
auto ea, str, count, ref; | |
auto end; | |
auto teststr; | |
ea = start; |
Control Flow Guard is a security mitigation that verifies the target address of indirect calls. It works by having the compiler insert a check at indirect call sites to verify the validity of the call target, and also the linker write the necessary data and flags into the PE/COFF image to enable the feature on Windows' end.