ChanServ changed the topic of #zig to: zig programming language | ziglang.org | be excellent to each other | channel logs: https://irclog.whitequark.org/zig/
juturnas has joined #zig
<juturnas>
I'm getting a segfault when the C library I'm working with invokes the callback I pass to it, here's the relevant snippit of a valgrind run: https://pastebin.com/q7m78uiT
juturnas has quit [Ping timeout: 260 seconds]
juturnas has joined #zig
juturnas has quit [Client Quit]
juturnas has joined #zig
juturnas has quit [Quit: Page closed]
juturnas has joined #zig
juturnas has quit [Ping timeout: 260 seconds]
zolk3ri has quit [Quit: leaving]
<alexnask>
@andrewrk Would it be resonble to allow numeric values @ptrCast'ed to [*]const u8 at comptime to generate a pointer to memory of size @sizeOf(integer_type)?
<alexnask>
This would couls also allow @bitCast ing the values
<alexnask>
I've seen some people trying to do similar things at comptime lately, I'm pretty torn about wether it should be allowed or not personally
<alexnask>
I'm guessing a major deterant is people thinking that the byte representation at comptime is the same as at runtime
juturnas has joined #zig
JinShil has joined #zig
_whitelogger has joined #zig
darithorn has quit [Quit: Leaving]
alexnask has quit [Ping timeout: 264 seconds]
JinShil has quit [Read error: Connection reset by peer]
juturnas has quit [Quit: Page closed]
davr0s has joined #zig
_whitelogger has joined #zig
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
davr0s has joined #zig
very-mediocre has joined #zig
jjido has joined #zig
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
davr0s has joined #zig
dbandstra has quit [Quit: Leaving]
Ichorio has joined #zig
jjido has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
quc has joined #zig
jjido has joined #zig
jjido has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zolk3ri has joined #zig
alexnask has joined #zig
Vinski has joined #zig
<GitHub42>
[zig] isaachier opened pull request #1157: Add fuzz test (master...fuzz-test) https://git.io/f4SP0
davr0s has joined #zig
kristate has joined #zig
kristate has quit [Remote host closed the connection]
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
strmpnk has quit []
vegecode has joined #zig
<vegecode>
I'm working on making Zig on an msp430 work nicely and have a question: What I need is for a user to type P1OUT and have the emitted assembly actually say PAOUT_H in it's place.
<vegecode>
In C that would be the preprocessor, I'm not sure how to do it in Zig though. It's critical that the name actually gets translated as a linker script is providing the final value.
<vegecode>
I'm trying to get a smooth usage out of the TI provided headers and linker scripts and such. LLVM actually makes calls to libgcc for the MSP430 backend.