Merge pull request #105 from k-takata/patch-1

Add the libcall way
This commit is contained in:
Luke Stephens (hakluke) 2020-01-09 23:17:24 +10:00 committed by GitHub
commit a5536610b5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -383,6 +383,18 @@ Credit: @axelf4
:echom test_null_list()
```
## The libcall way
Credit: @k-takata
Windows
```vim
:call libcallnr('kernel32.dll', 'ExitProcess', 0)
```
Linux
```vim
:call libcallnr('libc.so.6', 'exit', 0)
## The canonical way
Credit: @ligurio