mirror of
https://github.com/syntrex-lab/gomcp.git
synced 2026-05-08 11:02:37 +02:00
16 lines
388 B
Go
16 lines
388 B
Go
|
|
//go:build !shield_native
|
||
|
|
|
||
|
|
package engines
|
||
|
|
|
||
|
|
import "errors"
|
||
|
|
|
||
|
|
// NativeShield is a dummy to make compilation pass when tag is missing.
|
||
|
|
type NativeShield struct {
|
||
|
|
StubShield
|
||
|
|
}
|
||
|
|
|
||
|
|
// NewNativeShield returns an error when built without shield_native tag.
|
||
|
|
func NewNativeShield() (*NativeShield, error) {
|
||
|
|
return nil, errors.New("shield_native build tag not provided; native engine disabled")
|
||
|
|
}
|