#jextract windows native function not being generated

1 messages · Page 1 of 1 (latest)

brave crag
#

This is my jextract task being ran:

I am struggling to figure out why the ReadConsole function is not being generated, the CreatePseudoConsole function is generated

https://learn.microsoft.com/en-us/windows/console/readconsole
https://learn.microsoft.com/en-us/windows/console/creating-a-pseudoconsole-session

I added extra characters after it to figure out why it wasnt generated, maybe it was erroring but no errors that it isnt found even when I add characters to make it a function that doesn't exist.

extract_windows ARCH PATH="jextract":
    {{PATH}} \
        --output src/main/java \
        --target-package dev.weisz.boba.c.windows.{{ARCH}} \
        --include-function GetConsoleMode \
        --include-function SetConsoleMode \
        --include-constant ENABLE_ECHO_INPUT \
        --include-constant ENABLE_PROCESSED_INPUT \
        --include-constant ENABLE_LINE_INPUT \
        --include-constant ENABLE_PROCESSED_OUTPUT \
        --include-typedef HANDLE \
        --include-typedef HPCON \
        --include-struct _COORD \
        --include-typedef COORD \
        --include-typedef PCOORD \
        --include-function GetConsoleScreenBufferInfo \
        --include-function GetCurrentProcess \
        --include-function DuplicateHandle \
        --include-function CreatePipe \
        --include-function CreatePseudoConsole \
        --include-function ReadConsoleTestASdasd \
        --include-constant DUPLICATE_SAME_ACCESS \
        --include-function GetStdHandle \
        --include-constant STD_OUTPUT_HANDLE \
        windows_wrapper.h

Reads character input from the console input buffer and removes it from the buffer.

A pseudoconsole session will allow an application to host the activities of a character-mode application

small coralBOT
#

<@&987246554085740594> please have a look, thanks.

thin cape
#

like what if its a typedef or something strange

#

or a macro

#

also you gotta start bugging the jextract people directly

#

its more productive

brave crag