Add map decorator and simplify type conversion logic

This commit is contained in:
2025-09-08 20:32:51 +05:30
parent 83937dc11a
commit 08ff07641e
4 changed files with 16 additions and 13 deletions

View File

@ -9,6 +9,10 @@ def bpfglobal(func):
func._is_bpfglobal = True
return func
def map(func):
"""Decorator to mark a function as a BPF map."""
func._is_map = True
return func
def section(name: str):
def wrapper(fn):