Add the libcall way

This commit is contained in:
K.Takata 2020-01-09 14:38:52 +09:00 committed by GitHub
parent d548420d77
commit 3dd5802910
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -378,3 +378,16 @@ Credit: @axelf4
```vim
: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)
```