MCPcopy Create free account
hub / github.com/WallBreaker2/op / do_op_ptr

Function do_op_ptr

libop/memory/ProcessMemory.cpp:99–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97}
98
99size_t do_op_ptr(size_t a, size_t b, wchar_t op) {
100 switch (op) {
101 case L'+':
102 return a + b;
103 case L'-':
104 return a - b;
105 case L'*':
106 return a * b;
107 case L'/':
108 return b ? a / b : 0;
109 default:
110 return 0;
111 }
112}
113
114wstring normalize_hex(const wstring &hex) {
115 wstring out;

Callers 1

stringcomputeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected