direct-packet.cocci 249 B

12345678910111213141516
  1. @directpacket@
  2. identifier p;
  3. typedef Packet;
  4. position p1;
  5. @@
  6. Packet p@p1;
  7. @ script:python @
  8. p1 << directpacket.p1;
  9. @@
  10. print("Invalid Packet definition, explicit allocation must be used at %s:%s" % (p1[0].file, p1[0].line))
  11. import sys
  12. sys.exit(1)