I have an assembly function that is contained in a .asm file. I am trying to call it as an inline function, but when I disassemble it, every occurrence of it is a function call. I have done some research, and I read that for a function to be inline, it has to exist in every translation unit that uses it, but I don't know how to make the compiler/linker do that, or if it is even possible. If there is a way, how can it be done? I am uses some features that inline assembly does not provide, so that is not an option. I am using Visual Studio 2017.
As requested by Jesper Juhl, here is a short section of the file "Random.asm" that I am working with.
.code
_Random proc
rdseed eax
jnc PseudoRandom ;In case of failure, go to a pseudorandom number generator
ret
_Random endp