summaryrefslogtreecommitdiffhomepage
path: root/src/ext
diff options
context:
space:
mode:
authorcremno <[email protected]>2014-03-12 17:35:06 +0100
committercremno <[email protected]>2014-03-12 17:56:08 +0100
commite4afd5374fb07c7afb967ee51ff8317b831fcd55 (patch)
treea8c35b4f088cdc07425076d32f5d602bba2bea54 /src/ext
parentf85e5a80dc9e1e8128332e55e83f431b3c0fbe55 (diff)
downloadmruby-e4afd5374fb07c7afb967ee51ff8317b831fcd55.tar.gz
mruby-e4afd5374fb07c7afb967ee51ff8317b831fcd55.zip
add mrb_strlen_lit which makes _lit macros safer
strlen(3) + string literal is usually optimized but strlen(3) doesn't check if its argument is really a string literal. This is important for mruby's _static functions to which some _lit macros are expanded (string literals have static storage). See comment for some additional info. remove unnecessary parentheses
Diffstat (limited to 'src/ext')
0 files changed, 0 insertions, 0 deletions