We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 67d2140 commit 045f991Copy full SHA for 045f991
source/private.ts
@@ -1,8 +1,10 @@
1
import assert from 'node:assert'
2
-
+import { platform, arch } from 'node:process'
3
import koffi from './stubs/koffi.cjs'
4
export { koffi }
5
6
+assert(platform === 'win32' && arch === 'x64', 'This library can only be used on Windows x64 platforms.')
7
+
8
export interface WinDll extends Disposable {
9
name: string
10
lib: koffi.IKoffiLib
0 commit comments