Skip to content

支持hmain兼容windows非控制台以及linux gui程序 #725

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 17, 2025

Conversation

House-Men
Copy link
Contributor

@House-Men House-Men commented Apr 16, 2025

添加hmain signal_handle_noexit函数

因为signal_handle内部自动exit结束程序,而当业务层需要在exit之前做一些操作(例如执行打开正在运行的http服务首页url),因此需要支持一个不自动exit的函数版本。

支持自定义设置hmain内部msg信息 printf函数指针

因为不是所有程序都是控制台程序,而非控制台程序需要采用MessageBox或其他信息渲染方式来提示信息,因此需要支持自定义设置hmain使用的printf函数指针接管后由用户业务层采用其他形式进行提示。

@House-Men House-Men changed the title 支持hmain兼容windows非控制台程序 支持hmain兼容windows非控制台以及linux gui程序 Apr 16, 2025
support custom set hmain internal msg printf function pointer
@ithewei ithewei merged commit 3778046 into ithewei:master Apr 17, 2025
6 checks passed
@House-Men House-Men deleted the patch-9 branch April 17, 2025 12:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants