win32-def
Version:
win32 definitions for node-ffi
19 lines (14 loc) • 406 B
text/typescript
// dict of windef value
import { CallingConvention } from './ffi.types.js'
import type { LoadOptions } from './types.js'
export const config: Config = {
_WIN64: process.arch === 'x64',
}
export interface Config {
_WIN64: boolean
}
export const loadOptionsDefault: Omit<LoadOptions, 'dll' | 'dllFuncs'> = {
_WIN64: config._WIN64,
convention: CallingConvention.Cdecl,
autoCreateStruct: true,
}