Don't use strlen for string literals (#2517)
Their length (size) is known at compile time. Therefore `sizeof` is more efficient for them. JerryScript-DCO-1.0-Signed-off-by: Akos Kiss akiss@inf.u-szeged.hu
This commit is contained in:
@@ -35,4 +35,6 @@
|
||||
} \
|
||||
} while (0)
|
||||
|
||||
#define TEST_STRING_LITERAL(x) x
|
||||
|
||||
#endif /* !TEST_COMMON_H */
|
||||
|
||||
Reference in New Issue
Block a user