1
0
forked from rosa/hakurei

ext: integer limit values

For portably using C integers without cgo.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2026-03-17 14:09:38 +09:00
parent faea1f4bd6
commit 1c2d5f6b57
2 changed files with 20 additions and 0 deletions

View File

@@ -4,6 +4,7 @@ package ext
import (
"encoding/json"
"iter"
"math"
"strconv"
)
@@ -15,6 +16,12 @@ type (
Int = int32
)
// Integer limit values.
const (
MaxUint = math.MaxUint32
MaxInt = math.MaxInt32
)
// SyscallNum represents an architecture-specific, Linux syscall number.
type SyscallNum Int