Lines Matching full:limit
7 #embed <jk.txt> limit(1)
16 // Cannot have a negative limit.
17 #embed <jk.txt> limit(-1)
20 // It can have a limit of 0, in which case the __has_embed should return false.
21 #if __has_embed(<jk.txt> limit(0)) != __STDC_EMBED_EMPTY__
25 // When the limit is zero, the resource is empty, so if_empty kicks in.
27 #embed <jk.txt> limit(0) if_empty(1)
35 #embed <jk.txt> limit(0) prefix(2,) suffix(3)
40 // Ensure we can limit to something larger than the file size as well.
42 #embed <jk.txt> limit(100)
50 #embed <media/art.txt> limit(10)
64 // Ensure that a limit larger than what can fit into a 64-bit value is
65 // rejected. This limit is fine because it fits in a 64-bit value.
67 #embed <jk.txt> limit(0xFFFF'FFFF'FFFF'FFFF)
75 #embed <jk.txt> limit(0xFFFF'FFFF'FFFF'FFFF'1)
84 #embed <jk.txt> limit(1) prefix() limit(1)
85 // expected-error@-1 {{cannot specify parameter 'limit' twice in the same '#embed' directive}}
87 #embed <jk.txt> limit(1) if_empty() limit(2)
88 // expected-error@-1 {{cannot specify parameter 'limit' twice in the same '#embed' directive}}
93 #embed <jk.txt> limit(defined(FOO)) // expected-error {{'defined' cannot appear within this context…