Fix t/f/return.py, tweak handle_binary_ops

This commit is contained in:
Pragyansh Chaturvedi
2025-10-03 17:56:21 +05:30
parent b35134625b
commit 6fea580693
5 changed files with 29 additions and 13 deletions

View File

@ -0,0 +1,17 @@
from pythonbpf import compile, bpf, section, bpfglobal
from ctypes import c_void_p, c_int64
@bpf
@section("sometag1")
def sometag(ctx: c_void_p) -> c_int64:
return c_int64(1 - 1)
@bpf
@bpfglobal
def LICENSE() -> str:
return "GPL"
compile()