Skip to content

Commit

Permalink
rev
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuriy Vountesmery committed Aug 13, 2023
1 parent f53e7de commit f676144
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions libnng/libnng.d
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ const int NNG_MAXADDRLEN = 128;

int NNG_PROTOCOL_NUMBER (int maj, int min) { return maj *16 + min; }

/+
version(none)
enum nng_errno {
NNG_EINTR = 1,
Expand Down Expand Up @@ -53,6 +54,8 @@ enum nng_errno {
NNG_ESYSERR = 0x10000000,
NNG_ETRANERR = 0x20000000
};
+/


enum nng_errno : int {
@("") NNG_EINTR = 1,
Expand Down Expand Up @@ -104,6 +107,8 @@ string nng_errstr(nng_errno errno) {
assert(0);
}


/+
version(none)
string nng_errstr ( int ierrno ) {
immutable string[int] _nng_errstr = [
Expand Down Expand Up @@ -149,6 +154,8 @@ version(none)
string nng_errstr ( nng_errno e ){
return nng_errstr(cast(int)e);
}
+/


enum nng_flag {
NNG_FLAG_ALLOC = 1
Expand Down

0 comments on commit f676144

Please sign in to comment.