Lines Matching refs:size
76 f.writeln(" const void *v, size_t size) {")
77 f.writeln(" (void)size;")
83 f.writeln(" const void *v, size_t size) {")
84 f.writeln(" (void)size;")
90 f.writeln(" const void *v, size_t size) {")
93 f.writeln(" for (size_t i = 0; i < size && i < %d; i++) {" % limit)
100 f.writeln(" if (size > %d) {" % limit)
108 f.writeln(" const void *v, size_t size) {")
109 f.writeln(" __pretty_assert_print_mem(v, size);")
159 f.writeln("#define __PRETTY_ASSERT_MEM_%s(lh, rh, size) do { \\"
163 f.writeln(" if (!(memcmp(_lh, _rh, size) %s 0)) { \\" % op)
168 f.writeln(" _lh, size, \\")
169 f.writeln(" _rh, size); \\")
189 def mkassert(type, cmp, lh, rh, size=None):
190 if size is not None:
192 % (type.upper(), cmp.upper(), lh, rh, size))
260 # assert(memcmp(a,b,size) cmp 0)?
270 size = p_expr(p) ; p.accept('ws')
275 return mkassert('mem', CMP[cmp], lh, rh, size)
351 # memcmp(lh,rh,size) => 0?
361 size = p_expr(p) ; p.accept('ws')
365 return ws + mkassert('mem', 'eq', lh, rh, size)