aboutsummaryrefslogtreecommitdiff
path: root/pw_tokenizer/tokenize.cc
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-11-23 00:09:38 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-11-23 00:09:38 +0000
commitaff67b6bbc28eba4d1f4a4a12e116e63ab4813ea (patch)
treeb7892405559e1714c330ffb8ac9de9104296f4e3 /pw_tokenizer/tokenize.cc
parent13960e09d00c4e8612da0a9084e0e051603f072b (diff)
parentf054515492af5132f685cb23fe11891ee77104c9 (diff)
downloadpigweed-android14-qpr2-s1-release.tar.gz
Change-Id: I018123259cd231d0e74933e492391999e36650e8
Diffstat (limited to 'pw_tokenizer/tokenize.cc')
-rw-r--r--pw_tokenizer/tokenize.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/pw_tokenizer/tokenize.cc b/pw_tokenizer/tokenize.cc
index dbe3fd696..c4dcf4798 100644
--- a/pw_tokenizer/tokenize.cc
+++ b/pw_tokenizer/tokenize.cc
@@ -27,6 +27,9 @@ namespace pw {
namespace tokenizer {
namespace {
+static_assert(sizeof(PW_TOKENIZER_NESTED_PREFIX_STR) == 2,
+ "The nested prefix must be a single character string");
+
// Store metadata about this compilation's string tokenization in the ELF.
//
// The tokenizer metadata will not go into the on-device executable binary code.