Load extension

angerangel edited this page Jan 4, 2013 · 1 revision
Clone this wiki locally

USAGE

   LOAD-EXTENSION name /dispatch function

DESCRIPTION

Low level extension module loader (for DLLs).

LOAD-EXTENSION is a native value.

ARGUMENTS

  • name -- DLL file or UTF-8 source (file! binary!)

REFINEMENTS

  • /dispatch -- Specify native command dispatch (from hosted extensions)
    • function -- Command dispatcher (native) (handle!)

#SOURCE

load-extension: make native! [  [
    "Low level extension module loader (for DLLs)."
    name [file! binary!] "DLL file or UTF-8 source"
    /dispatch {Specify native command dispatch (from hosted extensions)}
    function [handle!] "Command dispatcher (native)"
] ]