mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-18 21:35:11 +01:00
update-mocks: allow it to handle missing notleak_
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
32cee8620b
commit
42b9df59c1
@ -15,7 +15,9 @@ if [ $# -eq 0 ]; then
|
||||
fi
|
||||
|
||||
for SYMBOL; do
|
||||
WHERE=$(grep -nH "^[a-zA-Z0-9_ (),]* [*]*$SYMBOL(" */*.h )
|
||||
# If there are multiple declarations, pick first (eg. common/memleak.h
|
||||
# has notleak_ as a declaration, and then an inline).
|
||||
WHERE=$(grep -nH "^[a-zA-Z0-9_ (),]* [*]*$SYMBOL(" */*.h | head -n1)
|
||||
if [ x"$WHERE" != x ]; then
|
||||
STUB='\n{ fprintf(stderr, "'$SYMBOL' called!\\n"); abort(); }'
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user