mirror of
https://github.com/varun-r-mallya/Python-BPF.git
synced 2025-12-31 21:06:25 +00:00
Add bpf decorator, start rewrite
This commit is contained in:
@ -1,3 +1,9 @@
|
||||
def bpf(func):
|
||||
"""Decorator to mark a function for BPF compilation."""
|
||||
func._is_bpf = True
|
||||
return func
|
||||
|
||||
|
||||
def section(name: str):
|
||||
def wrapper(fn):
|
||||
fn._section = name
|
||||
|
||||
Reference in New Issue
Block a user