# pbsys **Repository Path**: tpsoftcn/pbsys ## Basic Information - **Project Name**: pbsys - **Description**: rust wrap pb system lib ,rust powerbuilder system Lib - **Primary Language**: Rust - **License**: AGPL-3.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 1 - **Created**: 2022-06-07 - **Last Updated**: 2022-07-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: Rust, powerbuilder ## README # pbsys #### Readme rust wrap pb system lib ,rust powerbuilder system Lib #### build dll ``` cd pbsys cargo build ``` RUST: ``` #[no_mangle] pub unsafe extern "stdcall" fn bit_or(obthis:ObVm,nargs:u32)->i32{ let arg1 = obthis.get_next_arg().unwrap().get_long_unchecked(); let arg2 = obthis.get_next_arg().unwrap().get_long_unchecked(); let _ = obthis.set_return_long(arg1 | arg2); return 1; } ``` POWERBUIDER: ``` function long bit_or(readonly long a,readonly long b) system library "tpsys.dll" alias for "bit_or" ```